package com.qfmrk.service.impl;


import com.qfmrk.entity.User;
import com.qfmrk.mapper.UserMapper;
import com.qfmrk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * --- 永无霸哥 ---
 *
 * @author M.rk
 * @date 2024/11/23 14:13
 * @desc
 */
@Service
public class UserMapperImpl  implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User UserLoginByPassword(User user) {
        User login = userMapper.UserLoginByPassword(user);

        return login;
    }

    @Override
    public int AddUser(User user) {
        int i = userMapper.AddUser(user);
        return i;
    }
}
